import os

from iw import get_wifi_rssi
# aaa=get_wifi_rssi()
def construct_vect(aaa,mac_list):
    # print(aaa)
    vectors=[]
    # mac_list=[tmp['mac'] for tmp in aaa]
    for tmp in mac_list:
        flag=0
        # print(tmp)
        for i in aaa:
            # print('this is i',i)
            if i['mac'] in tmp or tmp in i['mac']:
                
                vectors.append(i['rssi'])
                flag=1
                break
        if flag==0:
            vectors.append('0')
    return vectors
